
*make key

replace z=0
replace y=0
replace x=0
local num_vars="`: word count `allvars''"
local c = `num_vars'+1
forv i = `minval'(0.01) `maxval' {
		replace z = `i' in `c'
		
		replace y =0 in `c'
		replace x=0 in `c'
		

		
*replace newvar = `i' in `c'
		local ++c
}

replace load_lab=""
replace load_lab="More Observable" if z==`c'

graph3d x z y  ,  ///
	 xlab("       {c 32}") ylab(" {c 32} {&rarr} Observability   ") zlab("{c 32}              {c 32}")     ///
	  ylangle(90)  zlangle(30) xlangle(-30) ylpos(3) xlpos(11) zlpos(10) ///
		markeroptions(mlab(load_lab) mlabvpos(position) mlabcolor(gray) msymbol(S))  ///
				cuboid innergrid perspective colorscheme(bcgyr)   ///
			aspectratio(1) scale(.1)  

graph export "C:\Users\awcassidy1\Dropbox\jmp_new\figs/key.pdf", as(pdf) replace

	
	